package com.push.xu.pushutil;

import android.annotation.SuppressLint;
import android.content.Context;
import android.util.Log;

import com.push.xu.xpush.base.BasePushReceiver;
import com.push.xu.xpush.entity.PushCommand;
import com.push.xu.xpush.entity.PushMsg;

public class ZpushReceiver extends BasePushReceiver {
	private static String TAG = "ZpushReceiver";
	private static Context mContext = null;

	private String runningActivityName = null;

	private static String webNAME = null;
	private String webURL = null;
	private String func_type = "";
	private String extras = null;
	
	private int notificationID = 0;
	
//	private NotificationManager mManager;

	@Override
	public void onReceiveNotificationClick(Context context, PushMsg msg) {
		mContext = context;
		extras = msg.getExtraMsg();
		notificationID = msg.getNotifyId();
		Log.d("receiver", "receiver:click");
		
	}

	@SuppressLint("NewApi")
	@Override
	public void onReceiveMessage(Context context, PushMsg msg) {
		mContext = context;
		extras = msg.getExtraMsg();
		notificationID = msg.getNotifyId();
		Log.d("receiver", "receiver:Message");

	}

	@Override
	public void onCommandResult(Context context, PushCommand command) {

	}


	@Override
	public void onReceiveNotification(Context context, PushMsg arg1) {
		extras = arg1.getExtraMsg();
		notificationID = arg1.getNotifyId();
		mContext = context;
	}

	@Override
	public void onOtherMessage(Context context) {
		
	}
	
	private void messagePushRegistration(Context context, String deviceID, String deviceRom) {
//		PushMessageUtil.register(context, "", deviceID, deviceRom, null);
	}

}
